package com.xinqi.modules.exam.task.client;

import com.xinqi.common.base.constants.ServiceNameConstants;
import com.xinqi.common.base.response.PageInfo;
import com.xinqi.common.base.response.R;
import com.xinqi.modules.exam.task.dto.req.AsyncTaskProcessLogQueryDTO;
import com.xinqi.modules.exam.task.dto.rsp.AsyncTaskProcessLogResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 异步任务处理日志客户端
 *
 * @author: linkai
 * @date: 2023/07/08
 */
@FeignClient(contextId = "asyncTaskProcessLogClient", value = ServiceNameConstants.XQ_EXAM)
public interface AsyncTaskProcessLogClient {
    String INNER_PREFIX = "/inner/async-task-process-log";

    /**
     * 异步任务处理日志-分页
     */
    @GetMapping(INNER_PREFIX + "/page")
    R<PageInfo<AsyncTaskProcessLogResultDTO>> page(AsyncTaskProcessLogQueryDTO dto);

    /**
     * 异步任务处理日志-详情
     */
    @GetMapping(INNER_PREFIX + "/{id}")
    R<AsyncTaskProcessLogResultDTO> findById(@PathVariable("id") Long id);

}
